package com.carpedil.es.service.impl;

import com.carpedil.es.entity.UrlEntity;
import com.carpedil.es.mapper.UrlMapper;
import com.carpedil.es.service.UrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** @author Administrator */
@Service
public class UrlServiceImpl implements UrlService {
  @Autowired UrlMapper urlMapper;

  @Override
  public String save(String url) {
    return urlMapper.save(url) + "";
  }

  @Override
  public List<UrlEntity> getUrlList() {
    return urlMapper.list();
  }
}
